package com.sunducation.co.cw.equalsAndHashCode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @description: 小米电视机
 * @author:chenwenbiao
 * @createTime:2019/7/9 9:57
 * @Version：1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class XiaoMiTV extends TV {

    /**
     * 价格
     */
    private float price;

    /**
     * 颜色
     */
    private String color;

    public XiaoMiTV(Integer id , String name, float price, String color){
        super(id, name);
        this.price = price;
        this.color = color;
    }
}
